Optimal. Leaf size=800 \[ \frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \log \left (-\frac{b \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right ) \log (a+b x)}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log \left (-\frac{b \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right ) \log (a+b x)}{2 f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}+\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (h x^2+g x+f\right )}{2 f}-\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{n \text{PolyLog}\left (2,\frac{b x}{a}+1\right )}{f}+\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{n \text{PolyLog}\left (2,\frac{d x}{c}+1\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.980036, antiderivative size = 800, normalized size of antiderivative = 1., number of steps used = 31, number of rules used = 12, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.353, Rules used = {2513, 2418, 2394, 2315, 2393, 2391, 705, 29, 634, 618, 206, 628} \[ \frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \log \left (-\frac{b \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right ) \log (a+b x)}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log \left (-\frac{b \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right ) \log (a+b x)}{2 f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}+\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x-\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+2 h x+\sqrt{g^2-4 f h}\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (h x^2+g x+f\right )}{2 f}-\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (a+b x)}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{n \text{PolyLog}\left (2,\frac{b x}{a}+1\right )}{f}+\frac{\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{PolyLog}\left (2,\frac{2 h (c+d x)}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{n \text{PolyLog}\left (2,\frac{d x}{c}+1\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2513
Rule 2418
Rule 2394
Rule 2315
Rule 2393
Rule 2391
Rule 705
Rule 29
Rule 634
Rule 618
Rule 206
Rule 628
Rubi steps
\begin{align*} \int \frac{\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{x \left (f+g x+h x^2\right )} \, dx &=n \int \frac{\log (a+b x)}{x \left (f+g x+h x^2\right )} \, dx-n \int \frac{\log (c+d x)}{x \left (f+g x+h x^2\right )} \, dx-\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{1}{x \left (f+g x+h x^2\right )} \, dx\\ &=n \int \left (\frac{\log (a+b x)}{f x}+\frac{(-g-h x) \log (a+b x)}{f \left (f+g x+h x^2\right )}\right ) \, dx-n \int \left (\frac{\log (c+d x)}{f x}+\frac{(-g-h x) \log (c+d x)}{f \left (f+g x+h x^2\right )}\right ) \, dx-\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{1}{x} \, dx}{f}-\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{-g-h x}{f+g x+h x^2} \, dx}{f}\\ &=-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}+\frac{n \int \frac{\log (a+b x)}{x} \, dx}{f}+\frac{n \int \frac{(-g-h x) \log (a+b x)}{f+g x+h x^2} \, dx}{f}-\frac{n \int \frac{\log (c+d x)}{x} \, dx}{f}-\frac{n \int \frac{(-g-h x) \log (c+d x)}{f+g x+h x^2} \, dx}{f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \int \frac{g+2 h x}{f+g x+h x^2} \, dx}{2 f}+\frac{\left (g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )\right ) \int \frac{1}{f+g x+h x^2} \, dx}{2 f}\\ &=\frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f}+\frac{n \int \left (\frac{\left (-h-\frac{g h}{\sqrt{g^2-4 f h}}\right ) \log (a+b x)}{g-\sqrt{g^2-4 f h}+2 h x}+\frac{\left (-h+\frac{g h}{\sqrt{g^2-4 f h}}\right ) \log (a+b x)}{g+\sqrt{g^2-4 f h}+2 h x}\right ) \, dx}{f}-\frac{n \int \left (\frac{\left (-h-\frac{g h}{\sqrt{g^2-4 f h}}\right ) \log (c+d x)}{g-\sqrt{g^2-4 f h}+2 h x}+\frac{\left (-h+\frac{g h}{\sqrt{g^2-4 f h}}\right ) \log (c+d x)}{g+\sqrt{g^2-4 f h}+2 h x}\right ) \, dx}{f}-\frac{(b n) \int \frac{\log \left (-\frac{b x}{a}\right )}{a+b x} \, dx}{f}+\frac{(d n) \int \frac{\log \left (-\frac{d x}{c}\right )}{c+d x} \, dx}{f}-\frac{\left (g \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )\right ) \operatorname{Subst}\left (\int \frac{1}{g^2-4 f h-x^2} \, dx,x,g+2 h x\right )}{f}\\ &=\frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f}+\frac{n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f}-\frac{n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f}-\frac{\left (h \left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (a+b x)}{g+\sqrt{g^2-4 f h}+2 h x} \, dx}{f}+\frac{\left (h \left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (c+d x)}{g+\sqrt{g^2-4 f h}+2 h x} \, dx}{f}-\frac{\left (h \left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (a+b x)}{g-\sqrt{g^2-4 f h}+2 h x} \, dx}{f}+\frac{\left (h \left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log (c+d x)}{g-\sqrt{g^2-4 f h}+2 h x} \, dx}{f}\\ &=\frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}-\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f}+\frac{n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f}-\frac{n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f}+\frac{\left (b \left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{-2 a h+b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{a+b x} \, dx}{2 f}-\frac{\left (d \left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{-2 c h+d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{c+d x} \, dx}{2 f}+\frac{\left (b \left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{-2 a h+b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{a+b x} \, dx}{2 f}-\frac{\left (d \left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \int \frac{\log \left (\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{-2 c h+d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{c+d x} \, dx}{2 f}\\ &=\frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}-\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f}+\frac{n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f}-\frac{n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f}+\frac{\left (\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 a h+b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,a+b x\right )}{2 f}-\frac{\left (\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 c h+d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,c+d x\right )}{2 f}+\frac{\left (\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 a h+b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,a+b x\right )}{2 f}-\frac{\left (\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{2 h x}{-2 c h+d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{x} \, dx,x,c+d x\right )}{2 f}\\ &=\frac{n \log \left (-\frac{b x}{a}\right ) \log (a+b x)}{f}-\frac{n \log \left (-\frac{d x}{c}\right ) \log (c+d x)}{f}-\frac{g \tanh ^{-1}\left (\frac{g+2 h x}{\sqrt{g^2-4 f h}}\right ) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f \sqrt{g^2-4 f h}}-\frac{\log (x) \left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right )}{f}-\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g-\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (a+b x) \log \left (-\frac{b \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \log (c+d x) \log \left (-\frac{d \left (g+\sqrt{g^2-4 f h}+2 h x\right )}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (n \log (a+b x)-\log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-n \log (c+d x)\right ) \log \left (f+g x+h x^2\right )}{2 f}-\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (a+b x)}{2 a h-b \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (a+b x)}{2 a h-b \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{n \text{Li}_2\left (1+\frac{b x}{a}\right )}{f}+\frac{\left (1+\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (c+d x)}{2 c h-d \left (g-\sqrt{g^2-4 f h}\right )}\right )}{2 f}+\frac{\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) n \text{Li}_2\left (\frac{2 h (c+d x)}{2 c h-d \left (g+\sqrt{g^2-4 f h}\right )}\right )}{2 f}-\frac{n \text{Li}_2\left (1+\frac{d x}{c}\right )}{f}\\ \end{align*}
Mathematica [A] time = 0.940115, size = 625, normalized size = 0.78 \[ \frac{\frac{n \left (\sqrt{g^2-4 f h}+g\right ) \left (\text{PolyLog}\left (2,\frac{b \left (\sqrt{g^2-4 f h}-g-2 h x\right )}{2 a h+b \sqrt{g^2-4 f h}+b (-g)}\right )-\text{PolyLog}\left (2,\frac{d \left (\sqrt{g^2-4 f h}-g-2 h x\right )}{2 c h+d \left (\sqrt{g^2-4 f h}-g\right )}\right )+\log \left (-\sqrt{g^2-4 f h}+g+2 h x\right ) \left (\log \left (\frac{2 h (a+b x)}{2 a h+b \sqrt{g^2-4 f h}+b (-g)}\right )-\log \left (\frac{2 h (c+d x)}{2 c h+d \sqrt{g^2-4 f h}+d (-g)}\right )\right )\right )}{\sqrt{g^2-4 f h}}+\frac{n \left (\sqrt{g^2-4 f h}-g\right ) \left (\text{PolyLog}\left (2,\frac{b \left (\sqrt{g^2-4 f h}+g+2 h x\right )}{b \left (\sqrt{g^2-4 f h}+g\right )-2 a h}\right )-\text{PolyLog}\left (2,\frac{d \left (\sqrt{g^2-4 f h}+g+2 h x\right )}{d \left (\sqrt{g^2-4 f h}+g\right )-2 c h}\right )+\log \left (\sqrt{g^2-4 f h}+g+2 h x\right ) \left (\log \left (\frac{2 h (a+b x)}{2 a h-b \left (\sqrt{g^2-4 f h}+g\right )}\right )-\log \left (\frac{2 h (c+d x)}{2 c h-d \left (\sqrt{g^2-4 f h}+g\right )}\right )\right )\right )}{\sqrt{g^2-4 f h}}-2 n \left (\text{PolyLog}\left (2,-\frac{b x}{a}\right )-\text{PolyLog}\left (2,-\frac{d x}{c}\right )+\log (x) \left (\log \left (\frac{b x}{a}+1\right )-\log \left (\frac{d x}{c}+1\right )\right )\right )-\left (\frac{g}{\sqrt{g^2-4 f h}}+1\right ) \log \left (-\sqrt{g^2-4 f h}+g+2 h x\right ) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )-\left (1-\frac{g}{\sqrt{g^2-4 f h}}\right ) \log \left (\sqrt{g^2-4 f h}+g+2 h x\right ) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+2 \log (x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.414, size = 0, normalized size = 0. \begin{align*} \int{\frac{1}{x \left ( h{x}^{2}+gx+f \right ) }\ln \left ( e \left ({\frac{bx+a}{dx+c}} \right ) ^{n} \right ) }\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right )}{h x^{3} + g x^{2} + f x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right )}{{\left (h x^{2} + g x + f\right )} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]